package com.langchain4j.simple.service;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.UserMessage;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName ChatAssistant
 * @createTime 12:37:00 2025/04/17
 */
//@AiService
public interface ChatAssistant {

    /**
     * 用户聊天
     * @param userMessage
     * @return
     */
    String chat(String userMessage);

    /**
     * 用户聊天
     * @param userId 用户 ID  (根据ID隔离记忆)
     * @param userMessage
     * @return
     */
    String chat(@MemoryId Long userId,@UserMessage String userMessage);
}
